package com.ruoyi.basicInfo.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import com.ruoyi.basicInfo.mapper.DumperMapper;
import com.ruoyi.basicInfo.domain.Dumper;
import com.ruoyi.basicInfo.service.IDumperService;

import javax.annotation.Resource;

/**
 * 翻车机信息Service业务层处理
 * 
 * @author zbw
 * @date 2022-07-13
 */
@Service
public class DumperServiceImpl implements IDumperService 
{
    @Resource
    private DumperMapper dumperMapper;

    /**
     * 查询翻车机信息
     * 
     * @param dumperId 翻车机信息主键
     * @return 翻车机信息
     */
    @Override
    public Dumper selectDumperByDumperId(String dumperId)
    {
        return dumperMapper.selectDumperByDumperId(dumperId);
    }

    /**
     * 查询翻车机信息列表
     * 
     * @param dumper 翻车机信息
     * @return 翻车机信息
     */
    @Override
    public List<Dumper> selectDumperList(Dumper dumper)
    {
        return dumperMapper.selectDumperList(dumper);
    }

    /**
     * 新增翻车机信息
     * 
     * @param dumper 翻车机信息
     * @return 结果
     */
    @Override
    public int insertDumper(Dumper dumper)
    {
        return dumperMapper.insertDumper(dumper);
    }

    /**
     * 修改翻车机信息
     * 
     * @param dumper 翻车机信息
     * @return 结果
     */
    @Override
    public int updateDumper(Dumper dumper)
    {
        return dumperMapper.updateDumper(dumper);
    }

    /**
     * 批量删除翻车机信息
     * 
     * @param dumperIds 需要删除的翻车机信息主键
     * @return 结果
     */
    @Override
    public int deleteDumperByDumperIds(String[] dumperIds)
    {
        return dumperMapper.deleteDumperByDumperIds(dumperIds);
    }

    /**
     * 删除翻车机信息信息
     * 
     * @param dumperId 翻车机信息主键
     * @return 结果
     */
    @Override
    public int deleteDumperByDumperId(String dumperId)
    {
        return dumperMapper.deleteDumperByDumperId(dumperId);
    }
}
